package org.xczy.order.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.client.RestTemplate;
import org.xczy.order.feign.StockFeignService;

import javax.annotation.Resource;

@RestController
@RequestMapping("/order")
public class OrderController {

  @Resource
  private StockFeignService stockFeignService;

  @GetMapping("/stock")
  public String add(){
    String s = stockFeignService.redact();
    return "成功 --> " + s;
  }

}
